package com.hlf.modules.merchant.table.service;



import com.hlf.common.utils.PageUtils;
import com.hlf.modules.merchant.table.entity.Table;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/***
 * 餐桌接口
 * @author Administrator
 *
 */
public interface TableService {

	PageUtils queryListForPage(Map<String, Object> map);

	Integer insertSelective(Table table);

	Table queryObjectForId(Long id);

	int updateByPrimaryKeySelective(Table table);

	int queryCountForTableTypeId(long tableTypeId);

	/**
	 * 更新餐桌状态
	 */
	Table updateTableStatus(Long id);

	/**
	 * 发送邮件
	 * @param email
	 */
    void sendEmail(String email,String storeName);

	/**
	 * 根据餐桌编号查找餐桌(模糊查询)
	 * @param tableNum
	 * @return
	 */
	List<Table> serachByTableNum(String tableNum,Long storeId);

	/**
	 * 删除餐桌
	 * @param request
	 */
    void deleteTable(HttpServletRequest request, List<String> tableIds);

    int queryCountForTableNumAndStoreId(String tableNum, String currentStoreId);
}
